package com.sylli.oeuf.server.object.transferable;

public class SessionTO extends BasedTO {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1609088193277893585L;

	private long clientId;
	
	private long accountId;
	
	private long serviceId;
	
	private long authenKey;

	public SessionTO () {
		// flex uses.
	}
	
	@Override
	public boolean equals(Object o) {
		if (o instanceof SessionTO) {
			SessionTO sto = (SessionTO) o;
			return sto.clientId == clientId
				&& sto.accountId == accountId
				&& sto.serviceId == serviceId
				&& sto.authenKey == authenKey;
		}
		return false;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "SessionTO: " + super.toString()
			+ ", clientId = " + clientId
			+ ", accountId = " + accountId
			+ ", serviceId = " + serviceId
			+ ", authenKey = " + authenKey;
	}


	// auto-generated stub.
	
	public long getClientId() {
		return clientId;
	}

	public void setClientId(long clientId) {
		this.clientId = clientId;
	}

	public long getAccountId() {
		return accountId;
	}

	public void setAccountId(long accountId) {
		this.accountId = accountId;
	}

	public long getServiceId() {
		return serviceId;
	}

	public void setServiceId(long serviceId) {
		this.serviceId = serviceId;
	}

	public long getAuthenKey() {
		return authenKey;
	}

	public void setAuthenKey(long authenKey) {
		this.authenKey = authenKey;
	}
}
